%h1 
	Using all_of
%p
	Here all expressions inside the bracket must be true 
%p
	I defined this method in the controller:
%p
	def allof  
	@blog_posts = BlogPost.all_of(tag1: "a", tag2:"b")
	end

%p
	try creating a new BlogPost with the first tag field = a and the other =b

- @blog_posts.each do |blog_post|
	%p
		%b= link_to blog_post.title, blog_post 
	%p created at
	%p= blog_post.time
	%p= blog_post.content


	%p{style: "float: right;"}
		= link_to "Delete", blog_post, method: :delete, confirm: "Are you sure you want to delete this post?"

		= link_to "modify", blog_post, method: :put
	%hr{style: "clear: both;"}

	%br 

= link_to 'Back', blog_posts_path
